/*
 * ***********************************************************
 * @Project: SCVHDemo
 * @File: MyService.java
 * @LastEditTime: 2024/11/17 15:07:41
 * @Author: chadm
 * ***********************************************************
 */


package com.example.host;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class MyService extends Service {

    final String TAG = MyService.class.getSimpleName();
    private SurfaceHostManager surfaceHostManager;

    public MyService() {
    }

    @Override
    public void onCreate() {
        super.onCreate();
        surfaceHostManager = SurfaceHostManager.getInstance();
    }

    @Override
    public IBinder onBind(Intent intent) {
        return surfaceHostManager.getServiceMessenger().getBinder();
    }
}